@mixin styles() {
  * {
    margin: 0;
  }

  a {
    text-decoration: none;
  }

  header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
  }

  header .avatar {
    margin-right: 8px;
  }

  header .user {
    display: flex;
    flex: 1;
  }

  header .user .name {
    font-weight: 700;
  }

  header .user .info {
    font-size: 0;
  }

  header .user .info .username, header .user .info .split, header .user .info .datetime {
    display: inline-block;
  }

  header .user .info .split {
    padding: 0 4px;
  }

  main .description {
    margin-bottom: 8px;
  }

  main .cover {
    position: relative;
    display: block;
    margin-bottom: 12px;
  }

  main .cover.video {}

  main .cover img {
    display: block;
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--kp-color-border);
  }

  main .card {
    display: block;
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--kp-color-border);
    background-color: var(--kp-color-background-paper);
  }

  main .card.small {
    display: flex;
  }

  main .card img {
    width: 100%;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
  }

  main .card.small .image {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 75px;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    background-color: var(--kp-color-background-neutral);
  }

  main .card.small .image.empty {
    background-size: 24px;
  }

  main .card .info {
    padding: 4px 8px 8px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
  }

  main .card.small .info {
    background-position: center;
  }

  main .card .title,
  main .card .desc {
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }

  main .card .title {
    -webkit-line-clamp: 2;
  }

  main .card .desc {
    -webkit-line-clamp: 3;
  }

  main .card.small .title,
  main .card.small .desc {
    -webkit-line-clamp: 1;
  }

  main .rt {
    display: block;
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--kp-color-border);
    background-color: var(--kp-color-background-paper);
  }

  main .rt .header {
    display: flex;
    padding: 8px 8px 4px 8px;
  }

  main .rt .header .avatar {
    width: 20px;
    height: 20px;
    margin-right: 6px;
  }

  main .rt .header .name {
    font-weight: 700;
  }

  main .rt .header .username {
    margin-left: 6px;
  }

  main .rt .desc {
    padding: 0 8px 8px 8px;
  }

  main .rt .content img {
    display: block;
    width: 100%;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
  }
}

@include styles;